package cc.wanforme.chipmunity.system.po;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import cc.wanforme.chipmunity.common.consts.ReplyEnum;

/**
 * @author wanne
 * 2019年8月15日
 * 
 */
public class Reply implements Serializable{
	private static final long serialVersionUID = 1L;
	
	@TableId(type = IdType.AUTO)
	private Long id;
	
	private Long passageId;
	
	private Long userId;
	
	private Integer number;
	
	private String rtfContent;
	
	private Date replyTime;
	
	private String state;

	public Reply(Long passageId, Long userId, Integer number, String rtfContent) {
		super();
		this.passageId = passageId;
		this.userId = userId;
		this.number = number;
		this.rtfContent = rtfContent;
		
		this.replyTime = new Date();
		this.state = ReplyEnum.STATE_ON.getState();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPassageId() {
		return passageId;
	}

	public void setPassageId(Long passageId) {
		this.passageId = passageId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getRtfContent() {
		return rtfContent;
	}

	public void setRtfContent(String rtfContent) {
		this.rtfContent = rtfContent;
	}

	public Date getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}
